<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/personnage.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/personnage.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="personnage_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __personnage_h__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __personnage_h__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;SDL/SDL_image.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="inventaire_8h.html">inventaire.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="capacite_8h.html">capacite.h</a>&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="constante_8h.html">constante.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="equipement_8h.html">equipement.h</a>&quot;</span>
<a name="l00014"></a>00014 
<a name="l00019"></a>00019 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00020"></a>00020 {
<a name="l00021"></a>00021     <span class="keywordtype">char</span> nom [30];      
<a name="l00022"></a>00022     <span class="keywordtype">char</span> race;          
<a name="l00028"></a>00028     <span class="keywordtype">char</span> sexe;          
<a name="l00032"></a>00032     <span class="keywordtype">char</span> faction;       
<a name="l00037"></a>00037     <span class="keywordtype">char</span> carriere;      
<a name="l00038"></a>00038     <span class="keywordtype">int</span> argent;         
<a name="l00039"></a>00039     <span class="keywordtype">int</span> experience;     
<a name="l00040"></a>00040     <span class="keywordtype">int</span> niveau;         
<a name="l00042"></a><a class="code" href="structPersonnage.html#a505e8fd20f8ea17e7a02ba9cc6961d8c">00042</a>     <a class="code" href="structCapacite.html">Capacite</a> <a class="code" href="structPersonnage.html#a505e8fd20f8ea17e7a02ba9cc6961d8c">capacite</a>;  
<a name="l00044"></a>00044     <span class="keywordtype">char</span> attaque;       
<a name="l00045"></a>00045     <span class="keywordtype">char</span> defense;       
<a name="l00046"></a>00046     <span class="keywordtype">char</span> intelligence;  
<a name="l00047"></a>00047     <span class="keywordtype">char</span> agilite;       
<a name="l00048"></a>00048     <span class="keywordtype">char</span> charisme;      
<a name="l00049"></a>00049     <span class="keywordtype">int</span> ptDeVie;        
<a name="l00051"></a>00051     <span class="keywordtype">int</span> posX;           
<a name="l00052"></a>00052     <span class="keywordtype">int</span> posY;           
<a name="l00054"></a><a class="code" href="structPersonnage.html#ac9281892885a2f06daa7fcabdf430b5c">00054</a>     <a class="code" href="structInventaire.html">Inventaire</a> <a class="code" href="structPersonnage.html#ac9281892885a2f06daa7fcabdf430b5c">inventaire</a>;  
<a name="l00056"></a><a class="code" href="structPersonnage.html#a5a5201db2e5969bfe2e811a6bf75d88e">00056</a>     <a class="code" href="structEquipement.html">Equipement</a> <a class="code" href="structPersonnage.html#a5a5201db2e5969bfe2e811a6bf75d88e">equipement</a>;  
<a name="l00058"></a>00058         SDL_Surface* avatar;    
<a name="l00060"></a>00060 } <a class="code" href="structPersonnage.html">Personnage</a>;
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a9e546144d60b8470f688e1639d73254a" title="Preconditions : perso n&#39;a pas déjà été initialisé   Postconditions : perso est initialisé, vide.">persoInit</a> (<a class="code" href="structPersonnage.html">Personnage</a>* perso);
<a name="l00068"></a>00068 
<a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a21c887d8b0b22116d983534f81886f65" title="Preconditions : perso n&#39;est pas initialisé ou initialisé à vide tab contient tous les objets du jeu l...">nouveauPerso</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <span class="keywordtype">char</span> nom[], <span class="keyword">const</span> <span class="keywordtype">char</span> race, <span class="keyword">const</span> <span class="keywordtype">char</span> sexe, <span class="keyword">const</span> <span class="keywordtype">char</span> faction, <span class="keyword">const</span> <span class="keywordtype">char</span> carriere, <span class="keyword">const</span> <span class="keywordtype">int</span> experience, <span class="keyword">const</span> <span class="keywordtype">int</span> argent, <a class="code" href="structObjet.html">Objet</a>* tab);
<a name="l00076"></a>00076 
<a name="l00082"></a>00082 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#aafc75061db756f5c40cd1ed96de18ed0" title="Preconditions : perso n&#39;est pas initialisé ou initialisé à vide tous les paramètres respectent les cr...">chargerPerso</a> (<a class="code" href="structPersonnage.html">Personnage</a>* perso, <span class="keyword">const</span> <span class="keywordtype">char</span> nom[50], <span class="keyword">const</span> <span class="keywordtype">char</span> race, <span class="keyword">const</span> <span class="keywordtype">char</span> sexe, <span class="keyword">const</span> <span class="keywordtype">char</span> faction, <span class="keyword">const</span> <span class="keywordtype">char</span> carriere, <span class="keyword">const</span> <span class="keywordtype">int</span> experience, <span class="keyword">const</span> <span class="keywordtype">int</span> argent, <span class="keyword">const</span> <span class="keywordtype">char</span> attaque, <span class="keyword">const</span> <span class="keywordtype">char</span> defense, <span class="keyword">const</span> <span class="keywordtype">char</span> intelligence,
<a name="l00083"></a>00083                    <span class="keyword">const</span> <span class="keywordtype">char</span> agilite, <span class="keyword">const</span> <span class="keywordtype">char</span> charisme, <span class="keyword">const</span> <span class="keywordtype">int</span> ptDeVie, <span class="keyword">const</span> <span class="keywordtype">int</span> posX, <span class="keyword">const</span> <span class="keywordtype">int</span> posY, <span class="keyword">const</span> <a class="code" href="structCompetence.html">Competence</a>* liste, <span class="keyword">const</span> <span class="keywordtype">int</span> nbCompetence, <span class="keyword">const</span> <span class="keywordtype">int</span>* inventaire, <span class="keyword">const</span> <span class="keywordtype">int</span> nbObjet, <span class="keyword">const</span> <span class="keywordtype">int</span> armure[5], <span class="keyword">const</span> <span class="keywordtype">int</span> arme[3],<a class="code" href="structObjet.html">Objet</a>* tabObjet);
<a name="l00084"></a>00084 
<a name="l00089"></a>00089 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a3c5c40bbdcb31fc766740446f6066339" title="Preconditions : perso est initialisé   Postconditions : 1 obj est ajouté à l&#39;inventaire de perso...">getNbPNJ</a>();
<a name="l00090"></a>00090 
<a name="l00095"></a>00095 <span class="keywordtype">int</span> <a class="code" href="personnage_8c.html#ad70a78a4b1f329f24edb75ff6404296d" title="Preconditions : /   Postconditions : retourne le nombre de carrieres dans Carrieres.txt.">getNbCarriere</a>();
<a name="l00096"></a>00096 
<a name="l00102"></a>00102 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a0c387c55be7f1a5c8be32c5897de83cc" title="Preconditions : perso n&#39;est pas initialisé ou initialisé à vide, l&lt;=getNbPNJ() tab contient tous les ...">persoInitPNJ</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <span class="keywordtype">int</span> l, <a class="code" href="structObjet.html">Objet</a>* tab);
<a name="l00103"></a>00103 
<a name="l00108"></a>00108 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a359b758b174089f2666ef2627cf9494f" title="Preconditions : perso est initialisé   Postconditions : perso est libéré">persoLibere</a> (<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00109"></a>00109 
<a name="l00114"></a>00114 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#acb14ac296219c0eb85f769769d15f23f" title="Preconditions : perso est initialisé   Postconditions : retourne le nom de perso.">getPersoNom</a>(<span class="keywordtype">char</span>* maChaine, <span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00115"></a>00115 
<a name="l00120"></a>00120 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a90b62dd9ef66048ff04fae3695136f74" title="Preconditions : perso est initialisé   Postconditions : retourne la race du perso.">getPersoRace</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00121"></a>00121 
<a name="l00126"></a>00126 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a48a3a6444b623b7b21f1d61b0fa8b4b1" title="Preconditions : /   Postconditions : copie le nom associé à race dans chaine.">getRaceNom</a>(<span class="keywordtype">char</span>* chaine,<span class="keywordtype">char</span> race);
<a name="l00127"></a>00127 
<a name="l00132"></a>00132 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a7e4d26ccb48f9195d62ad6fcbc468aba" title="Preconditions : perso est initialisé   Postconditions : retourne la faction du perso.">getPersoFaction</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00133"></a>00133 
<a name="l00138"></a>00138 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#a882d3af1be4857f4e076693fe838e72e" title="Preconditions : perso est initialisé   Postconditions : copie le nom de la faction de perso dans chai...">getPersoFactionNom</a>(<span class="keywordtype">char</span>* chaine, <span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00139"></a>00139 
<a name="l00144"></a>00144 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#afdf8a8513bc06ab2b1f8c709c81203a2" title="Preconditions : perso est initialisé   Postconditions : fixe la faction du perso.">setPersoFaction</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <span class="keywordtype">char</span> faction);
<a name="l00145"></a>00145 
<a name="l00150"></a>00150 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#abb7b2f12a18731556e518f0dea9e5e32" title="Preconditions : perso est initialisé   Postconditions : retourne le sexe du perso.">getPersoSexe</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00151"></a>00151 
<a name="l00156"></a>00156 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#ad82354a37f8fe64c2c2ac0112a2b7bd9" title="Preconditions : /   Postconditions : copie le nom associé à sexe dans chaine.">getSexeNom</a>(<span class="keywordtype">char</span>* chaine,<span class="keywordtype">char</span> sexe);
<a name="l00157"></a>00157 
<a name="l00162"></a>00162 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a3c621b73751db56ac17f354c0b81a3d3" title="Preconditions : perso est initialisé   Postconditions : retourne la carriere du perso.">getPersoCarriere</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00163"></a>00163 
<a name="l00168"></a>00168 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#abad81352129bf2eb102cd6ce4ca53fe5" title="Preconditions : perso est initialisé   Postconditions : retourne le nom de la carriere dans s...">getCarriereNom</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> carriere, <span class="keywordtype">char</span>* s);
<a name="l00169"></a>00169 
<a name="l00174"></a>00174 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a719fa096ea2707a9e326a585acbb1e5f" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;argent du perso.">getPersoArgent</a>(<span class="keyword">const</span> <span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00175"></a>00175 
<a name="l00180"></a>00180 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#aeac0fbb10a42bb8a8252f672a031e076" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;experience du perso.">getPersoExperience</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00181"></a>00181 
<a name="l00186"></a>00186 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a115c8e945f7aed70b27a4d9cd9ce78f1" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;attaque du perso.">getPersoAttaque</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00187"></a>00187 
<a name="l00192"></a>00192 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a0b2b5ff05924767445529b33fe651110" title="Preconditions : perso est initialisé   Postconditions : retourne la defense du perso.">getPersoDefense</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00193"></a>00193 
<a name="l00198"></a>00198 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a06d9d5cd1f30aa0522c1160c554f7896" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;intelligence du perso...">getPersoIntelligence</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00199"></a>00199 
<a name="l00204"></a>00204 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#a74f8c1dfb69537280007a460925542a6" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;agilite du perso.">getPersoAgilite</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00205"></a>00205 
<a name="l00210"></a>00210 <span class="keywordtype">char</span> <a class="code" href="perso__Editeur_8c.html#ab0df5449333b3771f7cfb509ed00f876" title="Preconditions : perso est initialisé   Postconditions : retourne le charsime du perso.">getPersoCharisme</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00211"></a>00211 
<a name="l00216"></a>00216 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a1f040fa9959b8ea0af05de2e64a45473" title="Preconditions : perso est initialisé   Postconditions : retourne les points de vie du perso...">getPersoPtDeVie</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00217"></a>00217 
<a name="l00222"></a>00222 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#a00c8a5089f4aec7875cf4a240b8d85c7" title="Preconditions : perso est initialisé   Postconditions : récupère la position en Y du perso...">getPersoPosX</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00223"></a>00223 
<a name="l00229"></a>00229 <span class="keywordtype">int</span> <a class="code" href="perso__Editeur_8c.html#aa5456c540d1b8244835137ca8323605a">getPersoPosY</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00234"></a>00234 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#ae05d6ccde3a4f61a365e5b07e1eed7e3" title="Preconditions : perso est initialisé   Postconditions : change la position en X du perso...">setPersoPosX</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <span class="keywordtype">int</span> x);
<a name="l00235"></a>00235 
<a name="l00240"></a>00240 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#af97c72b6811a9cfd7c47a73e6ba0f395" title="Preconditions : perso est initialisé   Postconditions : change la position en Y du perso...">setPersoPosY</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <span class="keywordtype">int</span> y);
<a name="l00241"></a>00241 
<a name="l00246"></a>00246 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#ad19216616c0c1fbd033d226a193e0f6e" title="Preconditions : perso est initialisé mais pas inv   Postconditions : copie l&#39;inventaire du perso dans...">getPersoInventaire</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso, <a class="code" href="structInventaire.html">Inventaire</a>* inv);
<a name="l00247"></a>00247 
<a name="l00252"></a>00252 <a class="code" href="structInventaire.html">Inventaire</a>* <a class="code" href="personnage_8c.html#a607a6bb5651c53565d5b61307b642ef9" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;adresse de l&#39;inventaire du perso...">getPersoInventaire2</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00253"></a>00253 
<a name="l00258"></a>00258 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a02f53cbc3c543ce1178cbd703a240af2" title="Preconditions : perso et s sont initialisés   Postconditions : retourne l&#39;ensemble des capacite du pe...">getPersoCapacite</a>(<span class="keyword">const</span> <a class="code" href="structPersonnage.html">Personnage</a> *perso, <a class="code" href="structCapacite.html">Capacite</a>* s);
<a name="l00259"></a>00259 
<a name="l00264"></a>00264 <a class="code" href="structCapacite.html">Capacite</a>* <a class="code" href="personnage_8c.html#a5160f7ed5468ea0d63fa0ffbe5169b0d" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;adresse de la Capacite de perso...">getPersoCapacite2</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00265"></a>00265 
<a name="l00270"></a>00270 <a class="code" href="structEquipement.html">Equipement</a>* <a class="code" href="personnage_8c.html#ac71efa2cc1800f0dffc06ce286036fd1" title="Preconditions : perso est initialisé   Postconditions : retourne l&#39;adresse de l&#39;Equipement de perso...">getPersoEquipement</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso);
<a name="l00271"></a>00271 
<a name="l00276"></a>00276 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#a76bbb5863201ed1e778ab242ea38f49b" title="Preconditions : perso est initialisé   Postconditions : fixe la somme d&#39;argent du perso...">setPersoArgent</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <span class="keywordtype">int</span> somme);
<a name="l00277"></a>00277 
<a name="l00282"></a>00282 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#a7172bd40f510146809d5773d1744a551" title="Preconditions : perso est initialisé   Postconditions : ajoute pdv aux points de vie de perso...">addPersoPtDeVie</a>(<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <span class="keywordtype">int</span> pdv);
<a name="l00283"></a>00283 
<a name="l00288"></a>00288 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a6c5ee3cd4d43da5df417bcb932abe7bf" title="Preconditions : perso est initialisé   Postconditions : 1 obj est ajouté à l&#39;inventaire de perso...">ajouterInventaire</a> (<a class="code" href="structPersonnage.html">Personnage</a> *perso, <a class="code" href="structObjet.html">Objet</a> *obj);
<a name="l00289"></a>00289 
<a name="l00294"></a>00294 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a515a6c05477ab1146eee50b419b7d656" title="Preconditions : perso est initialisé, obj est dans l&#39;inventaire de perso   Postconditions : 1 obj est...">soustraireInventaire</a> (<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <a class="code" href="structObjet.html">Objet</a> *obj);
<a name="l00295"></a>00295 
<a name="l00300"></a>00300 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a1b52f06e0979c1b37fbf60896d021106" title="Preconditions : perso est initialisé, type &gt;0   Postconditions : ajoute la compétence associée à type ...">ajouterCompetencePerso</a> (<a class="code" href="structPersonnage.html">Personnage</a> *perso, <span class="keyword">const</span> <span class="keywordtype">int</span> type, <span class="keyword">const</span> <span class="keywordtype">int</span> exp);
<a name="l00301"></a>00301 
<a name="l00307"></a>00307 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#abdf0b1659e803ac36075ba882c29c280" title="Preconditions : perso est initialisé, obj est dans l&#39;inventaire de perso éventuellement, cible correspond au personnage visé, initialisé   Postconditions : obj est utilisé et si besoin retiré de l&#39;inventaire de perso.">persoUtiliseObjet</a> (<a class="code" href="structPersonnage.html">Personnage</a> *perso, <a class="code" href="structObjet.html">Objet</a> *obj, <a class="code" href="structPersonnage.html">Personnage</a>* cible);
<a name="l00308"></a>00308 
<a name="l00313"></a>00313 <span class="keywordtype">void</span> <a class="code" href="personnage_8h.html#a5e2fe11a43175f7288de6b9791345abf" title="Preconditions: perso1 est initialisé, mais pas perso2   Postconditions : le contenu de avatar1 est co...">copieAvatar</a>(SDL_Surface* avatar1, SDL_Surface* avatar2);
<a name="l00314"></a>00314 
<a name="l00319"></a>00319 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a4fa4a3438a72c99a95d914e0af1b6fbc" title="Preconditions : perso1 est initialisé, mais pas perso2   Postconditions : le contenu de perso1 est co...">copiePerso</a> (<a class="code" href="structPersonnage.html">Personnage</a>* perso1, <a class="code" href="structPersonnage.html">Personnage</a>* perso2);
<a name="l00320"></a>00320 
<a name="l00325"></a>00325 <span class="keywordtype">void</span> <a class="code" href="personnage_8c.html#a0e130f46bf64b20968f45f901ad7e9e1" title="Preconditions : perso est initialisé, obj appartient à l&#39;inventaire de perso, 0&lt;=i&lt;3   Postconditions :...">equiper</a> (<a class="code" href="structPersonnage.html">Personnage</a>* perso, <a class="code" href="structObjet.html">Objet</a>* obj, <span class="keyword">const</span> <span class="keywordtype">int</span> i);
<a name="l00326"></a>00326 
<a name="l00332"></a>00332 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#aa17633cdc8e5ed865a0a175c8744ba09" title="Preconditions : tabPNJ n&#39;est pas initialisé   Postconditions : initialise tous les PNJ dans tabPNJ...">initialiserTousLesPNJ</a>(<a class="code" href="structPersonnage.html">Personnage</a>** tabPNJ, <a class="code" href="structObjet.html">Objet</a>* tabObjets);
<a name="l00333"></a>00333 
<a name="l00338"></a>00338 <span class="keywordtype">void</span> <a class="code" href="perso__Editeur_8c.html#a3259789468c454255dc6237b29bd6fef" title="Preconditions : tabPNJ est initialisé   Postconditions : libère tabPNJ.">libererTousLesPNJ</a>(<a class="code" href="structPersonnage.html">Personnage</a>** tabPNJ);
<a name="l00339"></a>00339 
<a name="l00344"></a>00344 <span class="keywordtype">int</span> <a class="code" href="personnage_8c.html#af47f203d4b554291c54bc9adee5f399d" title="Preconditions : experience&gt;=0   Postconditions : retourne le niveau lié à experience.">calculNiveau</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> experience);
<a name="l00345"></a>00345 
<a name="l00350"></a>00350 <span class="keywordtype">int</span> <a class="code" href="personnage_8c.html#a8e4704894768ef954f22d74aee1155bd" title="Preconditions : perso est initialise   Postconditions : retourne l&#39;experience totale du perso...">calculPersoExperience</a> (<a class="code" href="structPersonnage.html">Personnage</a>* perso);
<a name="l00351"></a>00351 
<a name="l00356"></a>00356 <span class="keywordtype">int</span> <a class="code" href="personnage_8c.html#a3de51249966fc615536b0fb800f3aef2" title="Preconditions : /   Postconditions : Fonction de test de non-regression du module Personnage ; retour...">mainPerso</a>();
<a name="l00357"></a>00357 
<a name="l00358"></a>00358 
<a name="l00359"></a>00359 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
